﻿@model IEnumerable<Guan.CMS.Web.ViewModels.ProductCategory.ProductCategoryTree>
@{
    Layout = null;
}

    <div class="gadget">
        <h2 class="star">产品分类</h2>
        <div class="clr"></div>
        <h3 class="catTitle"><a href="@Url.Action("Index")" title="全部产品">全部产品</a></h3>
        @foreach (var top in Model)
        {
            <h3 class="catTitle">@Html.ActionLink(top.Name,"Index",new{category=top.Id},new{title="产品分类："+top.Name})</h3>
            <ul class="sb_menu">
                @foreach (var sub in top.Children)
                {
                    <li>@Html.ActionLink(sub.Name, "Index", new {category = sub.Id})</li>
                }
            
            </ul>
        }
    </div>